public class Test {
	public static void main(String[] args) {
		CPU cpu = new CPU();
		cpu.setSpeed(2333);
		System.out.println("cpu:"+cpu.toString());
		HardDisk disk = new HardDisk();
		disk.setAmount(233);
		System.out.println("disk:"+disk.toString());
		PC pc = new PC();
		pc.setCPU(cpu);
		pc.setHardDisk(disk);
		pc.show();
		System.out.println("pc:"+pc.toString());
	}
}
